// 引入 request 文件
import request from './index.js'

// 分页查询学习列表
export const goodsList = (params) => {
	return request({
		url: '/work/goodsList',
		method: 'post',
		data: params,
	})
}

// 获取配置信息
export const getConfig = () => {
	return request({
		url: `/work/config`,
	})
}

// 获取分页标签信息
// /work/subList
export const getSubList = () => {
	return request({
		url: `/work/subList`,
	})
}

// 获取产品系列

// 获取分页标签信息
// /work/subList
export const getTypeList = () => {
	return request({
		url: `/work/typeList`,
	})
}


// 获取分页标签信息
// /work/subList
export const searchGoods = (params) => {
	return request({
		url: `/work/searchGoods`,
		method: 'post',
		data: params,
	})
}

//获取弹窗内容  /work/getalter

export const getAlter = () => {
	return request({
		url: `/work/getalter`,
	})
}